.map-container {
  width: 100%;
  height: 100%;
  .map-viewer {
    width: 100%;
    height: 100%;
  }
}
#app {
  .header-bar {
    height: 60px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    // 侧边栏
    .el-menu-horizontal {
      transition: width 0.28s;
      z-index: 1001;
      overflow: hidden;
      display: inline-block;
      margin-left: 50px;
      width: 680px;
      border-bottom: 0;

      .submenu-title-noDropdown {
        float: left;
        height: 60px;
        line-height: 60px;
        margin: 0;
        border-bottom: 2px solid transparent;
        color: #909399;
      }
    }
  }

  // 主体区域
  .main-container {
    position: absolute;
    top: 60px;
    bottom: 0;
    width: 100%;
    .content {
      display: block;
      width: 100%;
      height: 100%;
    }
    .sidebar-container-wrapper {
      float: left;
      height: 100%;
      transition: left 0.5s;
      background-color: #2f344d;
      position: relative;
      z-index: 999;
      .sidebar-container-location {
        position: absolute;
        width: 112px;
        height: 30px;
        z-index: 1002;
        line-height: 30px;
        text-align: center;
        top: -16px;

        img {
          vertical-align: middle;
        }

        .sidebar-menu-location {
          font-size: 14px;
          font-family: 'MicrosoftYaHei';
          color: rgba(255, 198, 0, 1);
          padding-left: 2px;
          position: relative;
          top: 2px;
        }
      }

      &.sidebar-container {
        font-size: 0px;
        height: 100%;
        z-index: 1001;
        overflow: hidden;
        text-align: left;
        // reset element-ui css
        .el-menu {
          width: 240px + 1;
        }
        .horizontal-collapse-transition {
          transition: 0s width ease-in-out, 0s padding-left ease-in-out,
            0s padding-right ease-in-out;
        }

        a {
          display: inline-block;
          width: 100%;
          overflow: hidden;
        }

        // reset element-ui css
        .horizontal-collapse-transition {
          transition: 0s width ease-in-out, 0s padding-left ease-in-out,
            0s padding-right ease-in-out;
        }

        .scrollbar-wrapper {
          overflow-x: hidden !important;
        }

        .el-scrollbar__bar.is-vertical {
          right: 0px;
        }

        .el-scrollbar {
          height: 100%;
        }
        .svg-icon {
          margin-right: 16px;
        }

        .el-menu {
          border: none !important;
          height: 100%;
          width: 240px;
          background: #2f344d;
          &.el-menu--collapse {
            width: 60px;
            .el-submenu {  
              & > .el-submenu__title {
                & > span {
                  height: 0;
                  width: 0;
                  overflow: hidden;
                  visibility: hidden;
                  display: inline-block;
                }
              }
            }
          }
          .el-submenu__title {
            font-size: 14px;
          }
          .nest-menu {
            .el-menu-item {
              &.is-active {
                font-weight: 600;
                background: linear-gradient(
                  90deg,
                  rgba(39, 196, 157, 0.1) 0%,
                  rgba(39, 196, 157, 0.4) 100%
                ) !important;
                background-color: transparent !important;
              }
              &.is-active::before {
                content: '';
                position: absolute;
                right: 0;
                width: 4px;
                height: 50px;
                background: #69B3FF;
              }
              &:hover {
                background: linear-gradient(
                  90deg,
                  rgba(39, 196, 157, 0.1) 0%,
                  rgba(39, 196, 157, 0.4) 100%
                ) !important;
              }
            }
          }
          & > .menu-wrapper {
            .el-menu-item {
              &.is-active {
                font-weight: 600;
                background: linear-gradient(
                  90deg,
                  rgba(39, 196, 157, 0.1) 0%,
                  rgba(39, 196, 157, 0.4) 100%
                ) !important;
                background-color: transparent !important;
              }
              &.is-active::before {
                content: '';
                position: absolute;
                right: 0;
                width: 4px;
                height: 50px;
                background: #69B3FF;
              }
              &:hover {
                background: linear-gradient(
                  90deg,
                  rgba(39, 196, 157, 0.1) 0%,
                  rgba(39, 196, 157, 0.4) 100%
                ) !important;
              }
            }
          }
        }

        // menu hover
        .submenu-title-noDropdown,
        .el-submenu__title {
          font-size: 14px;
          height: 40px;
          line-height: 38px;
          padding-left: 24px !important;
          //margin-bottom: 1px;
          background-color: #363c56 !important;
          .el-submenu__icon-arrow {
            right: 16px;
            font-size: 14px;
            margin-right: 0;
          }
          i {
            color: #fff;
            font-size: 14px;
            margin-right: 8px;
          }
          &:hover {
            background-color: linear-gradient(
              90deg,
              rgba(39, 196, 157, 0.1) 0%,
              rgba(39, 196, 157, 0.4) 100%
            ) !important;
          }
        }

        .is-active > .el-submenu__title {
          color: #fff !important;
          background: #363c56;
        }

        .nest-menu {
          .el-submenu {
            .el-submenu__title {
              padding-left: 40px !important;
            }
            .el-icon-arrow-down {
              width: 14px;
              height: 14px;
              background: url('../images/common/menu-closed.png') no-repeat;
              background-size: 100% 100%;
              &:before {
                content: '';
              }
            }
            &.is-opened {
              .el-icon-arrow-down {
                background: url('../images/common/menu-opened.png') no-repeat;
                background-size: 100% 100%;
              }
            }
          }
        }
        .nest-menu > a > .el-menu-item {
          padding-left: 40px !important;
        }
        .nest-menu > li .nest-menu a > .el-menu-item {
          padding-left: 52px !important;
        }
        .el-menu--collapse.el-menu .el-submenu {
          .el-submenu__title {
            padding-left: 10px !important;
          }
        }
      }
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: 37px !important;
    }

    //.main-container {
    //  margin-left: 54px;
    //}

    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }
      }
    }

    .el-submenu {
      overflow: hidden;

      & > .el-submenu__title {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }

        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform 0.28s;
      width: 240px;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-240px, 0, 0);
      }
    }
  }

  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }

  .scrollbar-wrapper {
    overflow-x: hidden !important;
    max-height: 100%;
    margin-bottom: 0 !important;
  }
  .sidebar-container-wrapper {
    .el-scrollbar__wrap {
      //margin-right: -28px!important;
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  & > .el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }
  .el-menu--popup {
    .el-menu-item {
      &.is-active {
        background: linear-gradient(
          90deg,
          rgba(39, 196, 157, 0.1) 0%,
          rgba(39, 196, 157, 0.4) 100%
        ) !important;
        &::before {
          content: '';
          position: absolute;
          right: 0;
          width: 4px;
          height: 50px;
          background: #69B3FF;
        }
      }
    }
  }

  .nest-menu .el-submenu > .el-submenu__title,
  .el-menu-item {
    &:hover {
      // you can use $subMenuHover
      background-color: linear-gradient(
        90deg,
        rgba(39, 196, 157, 0.1) 0%,
        rgba(39, 196, 157, 0.4) 100%
      ) !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  > .el-menu--popup {
    max-height: 100vh;
    //overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}
